package com.yt.sys.models.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "SysRolePermDTO", description = "角色权限关联DTO")
public class SysRolePermDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联记录ID")
    private Integer id;

    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID")
    private Integer roleId;

    @NotNull(message = "权限ID不能为空")
    @ApiModelProperty(value = "权限ID")
    private Integer permId;
}